// Odczytanie zawartoci pliku umieszczonego pod adresem URL

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSURL *myURL = [NSURL URLWithString: @"http://classroomM.com"];

    NSString *myHomePage = [NSString stringWithContentsOfURL: myURL
                encoding: NSASCIIStringEncoding error: NULL];

    NSLog(@"%@", myHomePage);

    [pool drain];
    return 0;
}